project(mosquittomgr)


set(OPENSSL_INCLUDE_DIR ${CMAKE_INTERNAL_INSTALL_PREFIX}/include)
set(OPENSSL_LIBRARIES ${CMAKE_INTERNAL_INSTALL_PREFIX}/lib/libssl.so ${CMAKE_INTERNAL_INSTALL_PREFIX}/lib/libcrypto.so)

add_subdirectory(mosquitto-2.0.14)

# 安装 mosquitto.conf 脚本到 etc 目录
install(
    FILES mosquitto.conf
    DESTINATION etc/mosquitto
)